<template>
  <div :class="prefixCls" class="relative h-[100%]" style="overflow: hidden">
    <!-- <XingKong /> -->
    <div class="acss-trkbkn" />
    <div class="relative mx-auto h-full flex">
      <div class="relative flex-1 p-30px dark:bg-[var(--login-bg-color)] lt-sm:p-10px">
        <!-- 登录界面 -->
        <Transition appear enter-active-class="animate__animated animate__bounceInRight">
          <div
            class="h-full w-[100%] flex flex-col justify-between items-center at-2xl:max-w-500px at-lg:max-w-500px at-md:max-w-500px at-xl:max-w-500px absolute top-10px right-80px"
          >
            <LoginForm class="m-auto h-auto lt-xl:(rounded-3xl light:bg-white) max-w-360px" />
            <div class="footer"> Copyright © 2024 东风汽车金融有限公司 </div>
          </div>
        </Transition>
      </div>

      <div class="flex absolute top-50px left-80px color-#fff">
        <img src="/dragon-logo.svg" class="app-loading-logo" />
        <div class="app-loading-title">
          <div class="tracking-6px">东风汽车金融</div>
          <div class="app-loading-subtitle">
            DONGFENG &nbsp;&nbsp; AUTO &nbsp;&nbsp;&nbsp; FINANCE
          </div>
        </div>
        <SoundWave />
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { useDesign } from '@/hooks/web/useDesign'
import { LoginForm, SoundWave, XingKong } from './components'

defineOptions({ name: 'Login' })

const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('login')
</script>

<style lang="scss" scoped>
$prefix-cls: #{$namespace}-login;

.#{$prefix-cls} {
  overflow: auto;

  &__left {
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      z-index: -1;
      width: 100%;
      height: 100%;
      background-image: url('@/assets/svgs/login-bg.svg');
      background-position: center;
      background-repeat: no-repeat;
      content: '';
    }
  }
}

.acss-trkbkn {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100vh;
  overflow: auto;
  background-image: url('/login-bg1.png');
  -webkit-background-size: 100% 100%;
  background-size: 100% 100%;
  position: fixed;
  width: 100%;
}

.app-loading-logo {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.app-loading-title {
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  // font-family: '仿宋';
}

.app-loading-subtitle {
  font-size: 11px;
  margin-left: -16px;
  margin-top: 2px;
}

.footer {
  // color: var(--el-color-default-dark-2);
  color: #fff;
  font-size: 14px;
  margin-block-start: 48px;
  margin-block-end: 24px;
  margin-inline: 0;
  padding-block: 0;
  text-align: center;
}
</style>
